/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package edu.fca.ui.tools;

import javax.swing.JTextField;

/**
 *
 * @author Romms
 */
public class Validations {
    public static boolean textFieldSizeEqual(JTextField textField,int validSize){
        if(textField.getText().length()>validSize){
            return false;
        }else if(textField.getText().length()<validSize){
            return false;
        }
        return true;
    }
}
